package com.superatom.designpattern.decorator.common;

/**
 * 测试类
 */
public class DecoratorV1Test {
    public static void main(String[] args) {
        BatterCake battercake = new BatterCake();
        System.out.println(battercake.getDesc()+" 销售价格:"+battercake.cost());

        BatterCake battercakeWithEgg = new BatterCakeWithEgg();
        System.out.println(battercakeWithEgg.getDesc()+" 销售价格:"+battercakeWithEgg.cost());


        BatterCake battercakeWithEggSausage = new BatterCakeWithEggSausage();
        System.out.println(battercakeWithEggSausage.getDesc()+" 销售价格:"+battercakeWithEggSausage.cost());
    }
}
